<!DOCTYPE html>
<html>
<head>
    <title>Logical AND Example 1</title>
    <script type="text/javascript">
    
        var found = true;
        var result = (found && someUndeclaredVariable);    //error occurs here
        alert(result);    //this line never executes



    </script>

</head>
<body>
  
</body>
</html>